package ro.licenta.main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.example.test.R;

public class HelpActivity extends Activity {

	Button helpBack;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.help);
		helpBack = (Button) findViewById(R.id.b_help_back);
		helpBack.setOnClickListener(myClickListener);
	}

	@Override
	protected void onPause() {
		finish();
		System.out.println("OnPauseHelp");
		super.onPause();
	}

	@Override
	protected void onDestroy() {
		System.out.println("OnDestroyHelp");
		super.onDestroy();
	}

	private OnClickListener myClickListener = new OnClickListener() {
		public void onClick(View v) {
			switch (v.getId()) {
			case R.id.b_help_back: {
				finish();
				Intent intent = new Intent(HelpActivity.this,
						LoadingActivity.class);
				startActivity(intent);
				break;
			}
			}

		}
	};
}
